package hc.bre.func

import hc.bre.cmn.ListOption
import hc.bre.cmn.RuleDefinition

@groovy.transform.CompileStatic
@groovy.transform.ToString(includeNames=true,includePackage=false)
class FunctionItem extends ListOption{
	List<FunctionArgItem> args=[]

	String script
	
	@Override
	public FunctionItem load(Map map) {
		super.load(map);
		
		args = hc.Util.<FunctionArgItem>loadList(map['args'], FunctionArgItem.class)
		
		script = map['script']

		return this;
	}
}